package com.vhall.component.dao.interactive;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vhall.component.entity.interactive.entity.QuestionEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * 提问mapper
 *
 * @author zhangtao
 */
@Mapper
@Repository
public interface QaQuestionMapper extends BaseMapper<QuestionEntity> {

    int decrementSameCount(Long id, Integer sameCount);

    int incrementSameCount(Long id, Integer sameCount);

    QuestionEntity selectByIdForUpdate(Long id);

}